package com.pragmatic.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.FieldDefaults;

@Setter
@Getter
@ToString
@FieldDefaults(level = AccessLevel.PRIVATE)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CommonResponse<T> {

  public static final String STATUS_S = "000000";

  /** 请求响应码 000000-成功；其他码值定义为各种失败 */
  String code;

  /** 错误消息 */
  String message;

  /** 业务处理结果对象 */
  T data;
}
